Set Display Text of OLED Screen

  • Function:

    magicbox.set_oled_text(port, text)
    
  • Description: set the text displayed on OLED screen. The OLED screen has four lines and 15 rows.

  • Required parameter:

    • port: controller port. data type: int, range: 1~6
    • text: text content. data type: str text content: 1. specific symbols; 2. numbers, English letters
  • Return:
    • True: The command has been finished.
    • False: The command has not been finished.
  • Example

    magicbox.set_oled_text(port=1, text="hello")
    

    Set the text displayed on OLED connected to port 1 of controller as "hello".

results matching ""

    No results matching ""